@layout("/common/_form.html",{js:["/assets/modular/web/gift/gift_add.js"]}){

<form class="layui-form" id="giftForm" lay-filter="giftForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">礼品信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input id="giftId" name="id" value="${giftId}" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">礼品图片<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="img" name="img" placeholder="请选择礼品图片" type="hidden" class="layui-input" lay-verify="required" lay-reqtext="礼品图片不能为空"/>
                            <button type="button" class="layui-btn layui-btn" id="imgBtn"><i class="fa fa-plus"></i> 选择礼品图片</button>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">礼品级别<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="giftLevelName" name="giftLevelName" placeholder="请选择礼品级别" type="text" class="layui-input" lay-verify="required" lay-reqtext="礼品级别不能为空"/>
                            <input id="giftLevelId" name="giftLevelId" type="hidden" class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">礼品分类<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="giftTypeName" name="giftTypeName" placeholder="请选择礼品分类" type="text" class="layui-input" lay-verify="required" lay-reqtext="礼品分类不能为空"/>
                            <input id="giftTypeId" name="giftTypeId" type="hidden" class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">礼品名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="name" name="name" placeholder="请输入礼品名称" type="text" class="layui-input" lay-verify="required" lay-reqtext="礼品名称不能为空"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">礼品数量<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="giftNum" name="giftNum" placeholder="请输入礼品数量" type="number" class="layui-input" lay-verify="required|numver" lay-reqtext="礼品数量不能为空"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">品牌<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="brand" name="brand" placeholder="请输入品牌" type="text" class="layui-input" lay-verify="required" lay-reqtext="品牌不能为空"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">来源<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="source" name="source" placeholder="请输入来源" type="text" class="layui-input" lay-verify="required" lay-reqtext="来源不能为空"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-block">
                            <textarea id="remark" name="remark" placeholder="请输入备注" class="layui-textarea"></textarea>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>
</form>
@}
